package js

import "go-gui/boot"

func Fun(funcName string, param ...string) {
	paramStr := ""
	if len(param) > 0 {
		for _, v := range param {
			if paramStr == "" {
				paramStr += "'" + v + "'"
			} else {
				paramStr += ",'" + v + "'"
			}
		}
	}
	boot.Ui.Eval(`
		` + funcName + `(` + paramStr + `)
	`)
}
